Avoid spurious operations on destroy
authorPaolo Borelli <pborelli@gnome.org>
Sun, 16 Feb 2014 21:22:59 +0000 (22:22 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 21 Jun 2015 15:32:31 +0000 (11:32 -0400)
commit4e155d784dda384cd4bba6653134b1a0542ee569
treea6329c4493bb72ee90e2109eb8ee84e9a89e73a4
parent3b43951ba4da9869e5f79f674e8c8a2fc16c78a9
Avoid spurious operations on destroy

When the stack is destroyed we do not want to waste time running
animations and notifying listeners about which is our current
visible child.

This is not only an optimization, but it is important for the stack
switcher widgets: since they are in another branch of the hieratchy
we do not want to get notifications while the stack is being destroyed.

Based on a patch by Paolo Borelli
https://bugzilla.gnome.org/show_bug.cgi?id=724506
gtk/gtkstack.c